// 判断大小端

#include <iostream>

int judgeByteOrder()
{
    int num = 1;
    return *(char*)&num;
}

int main()
{
    if(judgeByteOrder() == 1)
    {
        std::cout << "小端" << std::endl;
    }
    else
    {
        std::cout << "大端" << std::endl;
    }
    return 0;
}
